class Invoice < ActiveRecord::Base
  attr_accessible  :customer_id, :user_id,:invoice_items_attributes
  
  has_many :invoice_items, :dependent => :destroy
  accepts_nested_attributes_for :invoice_items
  
  belongs_to :customer
end
